package com.xyc.rabbitmq;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/*
    1.RabbitAutoConfiguration
    2.有自动配置了连接工厂ConnectionFactory
    3.RabbitProperties 封装了对RabbitMQ的配置
    4.AmqpAdmin:它是对RabbitMQ系统管理功能的组件
                它可以 创建和删除queue,exchange,binding
    5.RabbitTemplate 给RabbitMQ发送和接收消息
    6.@EnableRabbit + @RabbitListener 监听消息队列的内容
 */
@EnableRabbit // 开启基于注解的rabbitmq模式
@SpringBootApplication
public class RabbitmqApplication {

    public static void main(String[] args) {
        SpringApplication.run(RabbitmqApplication.class, args);
    }

}
